app.config(['$resourceProvider', function($resourceProvider) {
    $resourceProvider.defaults.stripTrailingSlashes = false;
}])
.factory('MainRemote', function($resource){
    return $resource('main/', {}, {
        get: {
            method: 'GET',
            params: {},
            isArray: false
        }
    });
})
.factory('GameViewRemote', function($resource){
    return $resource('game_view/', {}, {
        get: {
            method: 'GET',
            params: {},
            isArray: false
        }
    });
})
.factory('TagViewRemote', function($resource){
    return $resource('tag_view/', {}, {
        get: {
            method: 'GET',
            params: {},
            isArray: false
        },
        post: {
            method: 'POST',
            params: {},
            url: 'tag_view/',
            isArray: false
        }
    });
})
.factory('ProblemInfoRemote', function($resource){
    return $resource('problem_info/', {}, {
        get: {
            method: 'GET',
            params: {},
            isArray: false
        }
    });
});
